<%--
  Created by IntelliJ IDEA.
  User: 1
  Date: 2022/1/13
  Time: 8:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.js"></script>
</head>
<body>
<div class="container" id="div1">
    <caption>
        <div style="float: right;margin-bottom: 5px">
        </div>
    </caption>
    <table id="table" class="table table-hover">

    </table>
    <script>
        $(function () {
            $("#table").bootstrapTable({
                method:"get",
                contentType:"application/json",
                url:"http://localhost:8080/ck/queryCkd",
                striped:true,
                pageNumber:1,
                pagination:true,
                sidePagination:"server",
                pageSize:5,
                pageList:[3,5,7,10],
                queryParams:function (param) {
                    return {
                        page: (param.offset / param.limit) + 1,
                        pageNum: param.limit,
                        checkTag:"S001-1",
                    }
                },
                columns:[
                    {title:"出库单编号",field:"payId",align:"center"},
                    {title:"出库理由",field:"reason",align:"center"},
                    {title:"审核标志",field:"checkTag",align:"center"},
                ]
            })
        })
    </script>
</div>
</body>
</html>
